package com.lmq.files;
import com.lmq.onjava.RmDir;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;

public class TestRMDIR {
    static Path test = Paths.get("D:\\rmDir");
    static Path test2 = Paths.get("D:\\javaproject\\learning-on-java8\\src");
    public static void main(String[] args) throws Exception {

        if(Files.exists(test))
            RmDir.rmdir(test);
        Files.newDirectoryStream(test2)
                .forEach(System.out::println);


    }
}
